cmake_minimum_required(VERSION 3.0.0)
project(OpenCVViewer VERSION 0.1.0)

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
link_libraries(${OpenCV_LIBS})

add_executable(OpencvViewer main.cpp)
target_link_libraries(OpencvViewer X11)

install(TARGETS OpencvViewer RUNTIME DESTINATION /usr/local/bin/)